<?php

/*

Edit Pet Desc (pet_desc.php)

*/

$page_title = "Pet Descriptions";
$rank_check = 1;
include "header.inc.php";

$array = fetch("SELECT * FROM user_pets2 WHERE owner = '$userid' AND adoption = '0' AND id = '$id' AND game = '$game'");
$getPet = fetch("SELECT * FROM pets2 WHERE id = '$array[species]' AND game = '$game'");

$description = unsmilies($array[pet_desc]);

ECHO <<<END

$openHTML
<br>
<CENTER><TABLE BGCOLOR="$tableOutline" CELLSPACING=1 CELLPADDING=0 WIDTH=400>
   <tr>
   <td colspan=2 bgcolor=$topAndBottomBG><font color=$topAndBottomText><b>Pet Descriptions:</b></font></td></tr>
   <TR>
      <TD BGCOLOR=$middleBG>
         <form action=$base_url/pet_desc.pro.php?game=$game&id=$id method=post>
         <p align=center>
         Change $findPet[name]'s Description:
         </P>
         <P align=center> <TEXTAREA NAME=edit_desc ROWS=7 COLS=31 WRAP=virtual>$description</TEXTAREA><br><input type=submit value="Update Description"</P>
      </TD>
      <TD WIDTH=175 BGCOLOR=#FFFFFF>
         <p align=center>
	<img src=$base_url/images/user_images/opg_$game/pets/pet_$getPet[id].gif border=1>
	<br><a href=view_pet.php?id=$array[id]&game=$game><b>$array[name]</b> the $getPet[name]!$petNote[$id]</a></P>	<p align=center>$attitude[$id]</p>
      </TD>
   </TR>
</TABLE>
</CENTER>

<p align=center><a href=mypets.php?game=$game>Back to my pets!</a></p>
<p align=center><a href=view_pet.php?game=$game&id=$id>Back to $array[name]'s Page!</a></p>

$closeHTML

END;

?>